package com.hiv.mapper;

import com.hiv.mapper.domain.InspectionOfficeConfig;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 检验所配置Mapper接口
 * 
 * @author zhanghong
 * @date 2023-04-10
 */
@Mapper
@Repository
public interface InspectionOfficeConfigMapper {
    InspectionOfficeConfig selectById(Long id);
    List<InspectionOfficeConfig> selectList(InspectionOfficeConfig inspectionOfficeConfig);
    int insert(InspectionOfficeConfig inspectionOfficeConfig);
    int batchInsert(List<InspectionOfficeConfig> inspectionOfficeConfigList);
    int update(InspectionOfficeConfig inspectionOfficeConfig);
    int deleteById(Long id);
    int deleteByIds(String[] ids);

    @Select("select * from inspection_office_config where hospital_id=#{hospitalId} limit 1")
    InspectionOfficeConfig selectByHospitalId(Long hospitalId);
}
